package qt.dao;

import org.apache.ibatis.annotations.Param;
import qt.domain.Lskzmdygx;

import java.util.List;

/**
 * Created by charmyyy on 2017/10/19.
 */

public interface LskzmdygxDao {
    public List<Lskzmdygx> getAllLskzmdygx();

    public Lskzmdygx getLskzmdygx(@Param("stcd") String stcd);

    public int getLskzmdygxCount();

    public List<Lskzmdygx> getPageLskzmdygx(int start, int limit);

    public List<Lskzmdygx> getPageLskzmdygxByGldw(int start, int limit,@Param("admagcd")String admagcd);

    public List<Lskzmdygx> getPageLskzmdygxByAddvcd(int start, int limit,@Param("nodeId")String nodeId);

    public int addLskzmdygx(Lskzmdygx lskzmdygx);

    public int upptLskzmdygx(Lskzmdygx lskzmdygx);

    public int deleLskzmdygx(@Param("stcd") String stcd);

    //FIXME 有问题！
    public List<Lskzmdygx> getAllLskzmdygxByNmOrId(int start,int limit,@Param("nmOrId") String nmOrId);

    public int getLskzmdygxCountByGldw(@Param("admagcd") String admagcd);

    public int getLskzmdygxCountByNmOrId(@Param("nmOrId") String nmOrId);

    public int getLskzmdygxCountByAddvcd(@Param("nodeId") String nodeId);

    public List<Lskzmdygx> getFdm(@Param("stcd") String stcd);//前8位匹配

    public int getFdmCount(String stcd);
}
